import {SoundHelperBase} from "./SoundHelperBase";
import {ResourceComponent} from "../Resource/ResourceComponent";
import {GameEntry} from "../Base/GameEntry";

export class DefaultSoundHelper extends SoundHelperBase {
    private _resourceComponent:ResourceComponent;

    protected start(): void {
        super.start();
        this._resourceComponent = GameEntry.getComponment(ResourceComponent);
    }

    ReleaseSoundAsset(soundAsset: string, type: typeof cc.Asset): void {
        this._resourceComponent.UnloadAsset(soundAsset, type);
    }



}